package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 仓库表
 * </p>
 *
 * @author 小飞
 * @since 2019-06-22
 */
@Data
@TableName("shi_warehouse")
public class ShiWarehouse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 仓库
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 编号
     */
    @TableField("serial_num")
    private String serialNum;

    /**
     * 名称
     */
    @TableField("w_name")
    private String wName;

    /**
     * 是否已经删除0未删除，1已经删除
     */
    @TableField("is_delete")
    private Integer isDelete;

    /**
     * 父级id
     * @return
     */
    @TableField("pid")
    private Long pid;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum;
    }

    public String getwName() {
        return wName;
    }

    public void setwName(String wName) {
        this.wName = wName;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "ShiWarehouse{" +
                "id=" + id +
                ", serialNum=" + serialNum +
                ", wName=" + wName +
                ", isDelete=" + isDelete +
                "}";
    }
}
